package com.gitee.feizns.quickstart.liquor;

import lombok.SneakyThrows;
import org.noear.liquor.eval.Exprs;

import java.util.Map;

/**
 * 酒
 * @author feizns
 * @since 2024/12/24
 */
public abstract class Liquors {

    /**
     * 执行表达式
     * @param code 代码
     * @return {@link T}
     */
    @SneakyThrows
    public static Object eval(String code, Map<String, Object> args) {
        return Exprs.eval(code, args);
    }

}
